refactor(cli): Move sysinfo formatting into its own function #1323
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Description
This pull request refactors the
--sysinfocommand output for better code organization and readability, following the Single Responsibility Principle.Changes Made
main()function directly into theget_system_info()function.get_system_info()function now returns a fully formatted, multi-line string, making it a self-contained utility.if sysinfo:block in themain()function is now simplified to a single, cleanprint()call.Related Issue
Closes #1194
Important
Refactors
--sysinfocommand output by moving formatting logic toget_system_info(), simplifyingmain()function.--sysinfocommand output inmain()by moving formatting logic toget_system_info().get_system_info()now returns a formatted string with system details.if sysinfo:block inmain()to a singleprint()call.get_system_info()now includes formatting logic for system information.--sysinfoby providing version data and env variables insights #1194.This description was created by for 425521c. You can customize this summary. It will automatically update as commits are pushed.
 for 425521c. You can customize this summary. It will automatically update as commits are pushed.